{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#!/usr/bin/env python\n",
    "# -*- coding: utf-8 -*-\n",
    "# @Time    : 2017/11/13 10:55\n",
    "# @Author  : Deyu.Tian\n",
    "# @Site    : \n",
    "# @File    : dataClean.py\n",
    "# @Software: PyCharm Community Edition\n",
    "\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "\n",
    "import config\n",
    "tempDir = '{}\\\\temperture'.format(config.obsvDataDir)\n",
    "precDir = '{}\\\\preciption'.format(config.obsvDataDir)\n",
    "evapDir = '{}\\\\evaporation'.format(config.obsvDataDir)\n",
    "surfDir = '{}\\\\surfaceTemp'.format(config.obsvDataDir)\n",
    "windDir = '{}\\\\windSpeed'.format(config.obsvDataDir)\n",
    "\n",
    "from util import *\n",
    "TEMPS = list_all_texts(tempDir)\n",
    "PRECS = list_all_texts(precDir)\n",
    "EVAPS = list_all_texts(evapDir)\n",
    "SURFS = list_all_texts(surfDir)\n",
    "WINDS = list_all_texts(windDir)\n",
    "ATMOS = [TEMPS, PRECS]\n",
    "\n",
    "\n",
    "\n",
    "def _post_processing(atmos):\n",
    "    \"\"\"\n",
    "    对合并后表格后处理\n",
    "    :return: 处理后的表格\n",
    "    \"\"\"\n",
    "    atmos.columns = ['year_month_day', 'stationID', 'maxDayTemp', 'minDayTemp', '_year_month_day', '_stationID',\n",
    "                     'accumPrec']\n",
    "    atmos['accumPrec_1'] = atmos['accumPrec']\n",
    "    \"\"\"\n",
    "    for index, row in atmos.iterrows():\n",
    "        if row['accumPrec_1'] == 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = 0\n",
    "        elif row['accumPrec_1'] >= 32000 and row['accumPrec_1'] < 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 32000\n",
    "        elif row['accumPrec_1'] >= 31000 and row['accumPrec_1'] < 32000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 31000\n",
    "        elif row['accumPrec_1'] >= 30000 and row['accumPrec_1'] < 31000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 30000\n",
    "    \"\"\"\n",
    "    return atmos\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "def combine_all_files():\n",
    "    temp = pd.read_table(TEMPS[0], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                         dtype={'stationID': np.string0, 'maxDayTemp': np.float32, 'minDayTemp': np.float32},\n",
    "                         parse_dates=[[1, 2, 3]])\n",
    "    prec = pd.read_table(PRECS[0], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                         dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "    atmos = pd.concat([temp, prec], axis=1)\n",
    "    for i in range(len(ATMOS)): #2\n",
    "        for j in range(1, len(ATMOS[i])): #48\n",
    "            if i == 0:\n",
    "                tempe = pd.read_table(TEMPS[j], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                                        names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                                        dtype={'stationID': np.string0, 'maxDayTemp': np.float32,\n",
    "                                               'minDayTemp': np.float32}, parse_dates=[[1, 2, 3]])\n",
    "                temp = pd.concat([temp, tempe])\n",
    "            if i == 1:\n",
    "                prece = pd.read_table(PRECS[j], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                                     names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                                     dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "                prec = pd.concat([prec, prece])\n",
    "    atmose = pd.concat([temp, prec], axis=1)\n",
    "    atmos = pd.concat([atmos, atmose])\n",
    "    atmos = _post_processing(atmos)\n",
    "    return atmos\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    atmos = combine_all_files()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "for index, row in atmos.iterrows():\n",
    "    if row['accumPrec_1'] == 32700:\n",
    "        atmos.loc[index, 'accumPrec_1'] = 0\n",
    "    elif row['accumPrec_1'] >= 32000 and row['accumPrec_1'] < 32700:\n",
    "        atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 32000\n",
    "    elif row['accumPrec_1'] >= 31000 and row['accumPrec_1'] < 32000:\n",
    "        atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 31000\n",
    "    elif row['accumPrec_1'] >= 30000 and row['accumPrec_1'] < 31000:\n",
    "        atmos.loc[index, 'accumPrec_1'] = row['accumPrec_1'] - 30000\n",
    "    if index > 100:\n",
    "        break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001            1  \n",
       "2          50136      31009            9  \n",
       "3          50136      32700            0  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700            0  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#!/usr/bin/env python\n",
    "# -*- coding: utf-8 -*-\n",
    "# @Time    : 2017/11/13 10:55\n",
    "# @Author  : Deyu.Tian\n",
    "# @Site    : \n",
    "# @File    : dataClean.py\n",
    "# @Software: PyCharm Community Edition\n",
    "\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "\n",
    "import config\n",
    "tempDir = '{}\\\\temperture'.format(config.obsvDataDir)\n",
    "precDir = '{}\\\\preciption'.format(config.obsvDataDir)\n",
    "evapDir = '{}\\\\evaporation'.format(config.obsvDataDir)\n",
    "surfDir = '{}\\\\surfaceTemp'.format(config.obsvDataDir)\n",
    "windDir = '{}\\\\windSpeed'.format(config.obsvDataDir)\n",
    "\n",
    "from util import *\n",
    "TEMPS = list_all_texts(tempDir)\n",
    "PRECS = list_all_texts(precDir)\n",
    "EVAPS = list_all_texts(evapDir)\n",
    "SURFS = list_all_texts(surfDir)\n",
    "WINDS = list_all_texts(windDir)\n",
    "ATMOS = [TEMPS, PRECS]\n",
    "\n",
    "\n",
    "\n",
    "def _post_processing(atmos):\n",
    "    \"\"\"\n",
    "    对合并后表格后处理\n",
    "    :return: 处理后的表格\n",
    "    \"\"\"\n",
    "    atmos.columns = ['year_month_day', 'stationID', 'maxDayTemp', 'minDayTemp', '_year_month_day', '_stationID',\n",
    "                     'accumPrec']\n",
    "    atmos['accumPrec_1'] = atmos['accumPrec']\n",
    "    atmos['accumPrec_1'] = pd.to_numeric(atmos['accumPrec_1'], errors='coerce')\n",
    "    return atmos\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "def combine_all_files():\n",
    "    temp = pd.read_table(TEMPS[0], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                         dtype={'stationID': np.string0, 'maxDayTemp': np.float32, 'minDayTemp': np.float32},\n",
    "                         parse_dates=[[1, 2, 3]])\n",
    "    prec = pd.read_table(PRECS[0], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                         dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "    atmos = pd.concat([temp, prec], axis=1)\n",
    "    for i in range(len(ATMOS)): #2\n",
    "        for j in range(1, len(ATMOS[i])): #48\n",
    "            if i == 0:\n",
    "                tempe = pd.read_table(TEMPS[j], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                                        names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                                        dtype={'stationID': np.string0, 'maxDayTemp': np.float32,\n",
    "                                               'minDayTemp': np.float32}, parse_dates=[[1, 2, 3]])\n",
    "                temp = pd.concat([temp, tempe])\n",
    "            if i == 1:\n",
    "                prece = pd.read_table(PRECS[j], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                                     names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                                     dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "                prec = pd.concat([prec, prece])\n",
    "    atmose = pd.concat([temp, prec], axis=1)\n",
    "    atmos = pd.concat([atmos, atmose])\n",
    "    atmos = _post_processing(atmos)\n",
    "    return atmos\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    atmos = combine_all_files()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "    for index, row in atmos.iterrows():\n",
    "        if row['accumPrec_1'] == 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = 0\n",
    "        elif row['accumPrec_1'] >= 32000 and row['accumPrec_1'] < 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 32000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 31000 and row['accumPrec_1'] < 32000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 31000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 30000 and row['accumPrec_1'] < 31000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 30000) * 0.1\n",
    "        if index > 50:\n",
    "            break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false,
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>0.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>0.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0          0.0  \n",
       "1          50136      31001          0.1  \n",
       "2          50136      31009          0.9  \n",
       "3          50136      32700          0.0  \n",
       "4          50136          0          0.0  \n",
       "5          50136          0          0.0  \n",
       "6          50136          0          0.0  \n",
       "7          50136          0          0.0  \n",
       "8          50136          0          0.0  \n",
       "9          50136          0          0.0  \n",
       "10         50136          0          0.0  \n",
       "11         50136          0          0.0  \n",
       "12         50136          0          0.0  \n",
       "13         50136          0          0.0  \n",
       "14         50136          0          0.0  \n",
       "15         50136          0          0.0  \n",
       "16         50136          0          0.0  \n",
       "17         50136      32700      32700.0  \n",
       "18         50136          0          0.0  \n",
       "19         50136          0          0.0  \n",
       "20         50136          0          0.0  \n",
       "21         50136          0          0.0  \n",
       "22         50136          0          0.0  \n",
       "23         50136          0          0.0  \n",
       "24         50136          0          0.0  \n",
       "25         50136          0          0.0  \n",
       "26         50136          0          0.0  \n",
       "27         50136          0          0.0  \n",
       "28         50136          0          0.0  \n",
       "29         50136          0          0.0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700      32700.0  \n",
       "24461      59981      32700      32700.0  \n",
       "24462      59981      32700      32700.0  \n",
       "24463      59981          0          0.0  \n",
       "24464      59981      32700      32700.0  \n",
       "24465      59981          0          0.0  \n",
       "24466      59981          0          0.0  \n",
       "24467      59981         30         30.0  \n",
       "24468      59981        124        124.0  \n",
       "24469      59981        682        682.0  \n",
       "24470      59981          5          5.0  \n",
       "24471      59981      32700      32700.0  \n",
       "24472      59981      32700      32700.0  \n",
       "24473      59981          0          0.0  \n",
       "24474      59981         45         45.0  \n",
       "24475      59981         39         39.0  \n",
       "24476      59981          0          0.0  \n",
       "24477      59981      32700      32700.0  \n",
       "24478      59981         10         10.0  \n",
       "24479      59981         32         32.0  \n",
       "24480      59981         78         78.0  \n",
       "24481      59981          0          0.0  \n",
       "24482      59981          0          0.0  \n",
       "24483      59981          0          0.0  \n",
       "24484      59981          1          1.0  \n",
       "24485      59981          2          2.0  \n",
       "24486      59981         45         45.0  \n",
       "24487      59981        151        151.0  \n",
       "24488      59981          1          1.0  \n",
       "24489      59981          0          0.0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>-3099.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>-3099.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0         0.00  \n",
       "1          50136      31001     -3099.99  \n",
       "2          50136      31009     -3099.91  \n",
       "3          50136      32700         0.00  \n",
       "4          50136          0         0.00  \n",
       "5          50136          0         0.00  \n",
       "6          50136          0         0.00  \n",
       "7          50136          0         0.00  \n",
       "8          50136          0         0.00  \n",
       "9          50136          0         0.00  \n",
       "10         50136          0         0.00  \n",
       "11         50136          0         0.00  \n",
       "12         50136          0         0.00  \n",
       "13         50136          0         0.00  \n",
       "14         50136          0         0.00  \n",
       "15         50136          0         0.00  \n",
       "16         50136          0         0.00  \n",
       "17         50136      32700     32700.00  \n",
       "18         50136          0         0.00  \n",
       "19         50136          0         0.00  \n",
       "20         50136          0         0.00  \n",
       "21         50136          0         0.00  \n",
       "22         50136          0         0.00  \n",
       "23         50136          0         0.00  \n",
       "24         50136          0         0.00  \n",
       "25         50136          0         0.00  \n",
       "26         50136          0         0.00  \n",
       "27         50136          0         0.00  \n",
       "28         50136          0         0.00  \n",
       "29         50136          0         0.00  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700     32700.00  \n",
       "24461      59981      32700     32700.00  \n",
       "24462      59981      32700     32700.00  \n",
       "24463      59981          0         0.00  \n",
       "24464      59981      32700     32700.00  \n",
       "24465      59981          0         0.00  \n",
       "24466      59981          0         0.00  \n",
       "24467      59981         30        30.00  \n",
       "24468      59981        124       124.00  \n",
       "24469      59981        682       682.00  \n",
       "24470      59981          5         5.00  \n",
       "24471      59981      32700     32700.00  \n",
       "24472      59981      32700     32700.00  \n",
       "24473      59981          0         0.00  \n",
       "24474      59981         45        45.00  \n",
       "24475      59981         39        39.00  \n",
       "24476      59981          0         0.00  \n",
       "24477      59981      32700     32700.00  \n",
       "24478      59981         10        10.00  \n",
       "24479      59981         32        32.00  \n",
       "24480      59981         78        78.00  \n",
       "24481      59981          0         0.00  \n",
       "24482      59981          0         0.00  \n",
       "24483      59981          0         0.00  \n",
       "24484      59981          1         1.00  \n",
       "24485      59981          2         2.00  \n",
       "24486      59981         45        45.00  \n",
       "24487      59981        151       151.00  \n",
       "24488      59981          1         1.00  \n",
       "24489      59981          0         0.00  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>-3099.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>-3099.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0         0.00  \n",
       "1          50136      31001     -3099.99  \n",
       "2          50136      31009     -3099.91  \n",
       "3          50136      32700         0.00  \n",
       "4          50136          0         0.00  \n",
       "5          50136          0         0.00  \n",
       "6          50136          0         0.00  \n",
       "7          50136          0         0.00  \n",
       "8          50136          0         0.00  \n",
       "9          50136          0         0.00  \n",
       "10         50136          0         0.00  \n",
       "11         50136          0         0.00  \n",
       "12         50136          0         0.00  \n",
       "13         50136          0         0.00  \n",
       "14         50136          0         0.00  \n",
       "15         50136          0         0.00  \n",
       "16         50136          0         0.00  \n",
       "17         50136      32700         0.00  \n",
       "18         50136          0         0.00  \n",
       "19         50136          0         0.00  \n",
       "20         50136          0         0.00  \n",
       "21         50136          0         0.00  \n",
       "22         50136          0         0.00  \n",
       "23         50136          0         0.00  \n",
       "24         50136          0         0.00  \n",
       "25         50136          0         0.00  \n",
       "26         50136          0         0.00  \n",
       "27         50136          0         0.00  \n",
       "28         50136          0         0.00  \n",
       "29         50136          0         0.00  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700     32700.00  \n",
       "24461      59981      32700     32700.00  \n",
       "24462      59981      32700     32700.00  \n",
       "24463      59981          0         0.00  \n",
       "24464      59981      32700     32700.00  \n",
       "24465      59981          0         0.00  \n",
       "24466      59981          0         0.00  \n",
       "24467      59981         30        30.00  \n",
       "24468      59981        124       124.00  \n",
       "24469      59981        682       682.00  \n",
       "24470      59981          5         5.00  \n",
       "24471      59981      32700     32700.00  \n",
       "24472      59981      32700     32700.00  \n",
       "24473      59981          0         0.00  \n",
       "24474      59981         45        45.00  \n",
       "24475      59981         39        39.00  \n",
       "24476      59981          0         0.00  \n",
       "24477      59981      32700     32700.00  \n",
       "24478      59981         10        10.00  \n",
       "24479      59981         32        32.00  \n",
       "24480      59981         78        78.00  \n",
       "24481      59981          0         0.00  \n",
       "24482      59981          0         0.00  \n",
       "24483      59981          0         0.00  \n",
       "24484      59981          1         1.00  \n",
       "24485      59981          2         2.00  \n",
       "24486      59981         45        45.00  \n",
       "24487      59981        151       151.00  \n",
       "24488      59981          1         1.00  \n",
       "24489      59981          0         0.00  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>-3099.99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>-3099.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0         0.00  \n",
       "1          50136      31001     -3099.99  \n",
       "2          50136      31009     -3099.91  \n",
       "3          50136      32700         0.00  \n",
       "4          50136          0         0.00  \n",
       "5          50136          0         0.00  \n",
       "6          50136          0         0.00  \n",
       "7          50136          0         0.00  \n",
       "8          50136          0         0.00  \n",
       "9          50136          0         0.00  \n",
       "10         50136          0         0.00  \n",
       "11         50136          0         0.00  \n",
       "12         50136          0         0.00  \n",
       "13         50136          0         0.00  \n",
       "14         50136          0         0.00  \n",
       "15         50136          0         0.00  \n",
       "16         50136          0         0.00  \n",
       "17         50136      32700         0.00  \n",
       "18         50136          0         0.00  \n",
       "19         50136          0         0.00  \n",
       "20         50136          0         0.00  \n",
       "21         50136          0         0.00  \n",
       "22         50136          0         0.00  \n",
       "23         50136          0         0.00  \n",
       "24         50136          0         0.00  \n",
       "25         50136          0         0.00  \n",
       "26         50136          0         0.00  \n",
       "27         50136          0         0.00  \n",
       "28         50136          0         0.00  \n",
       "29         50136          0         0.00  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700     32700.00  \n",
       "24461      59981      32700     32700.00  \n",
       "24462      59981      32700     32700.00  \n",
       "24463      59981          0         0.00  \n",
       "24464      59981      32700     32700.00  \n",
       "24465      59981          0         0.00  \n",
       "24466      59981          0         0.00  \n",
       "24467      59981         30        30.00  \n",
       "24468      59981        124       124.00  \n",
       "24469      59981        682       682.00  \n",
       "24470      59981          5         5.00  \n",
       "24471      59981      32700     32700.00  \n",
       "24472      59981      32700     32700.00  \n",
       "24473      59981          0         0.00  \n",
       "24474      59981         45        45.00  \n",
       "24475      59981         39        39.00  \n",
       "24476      59981          0         0.00  \n",
       "24477      59981      32700     32700.00  \n",
       "24478      59981         10        10.00  \n",
       "24479      59981         32        32.00  \n",
       "24480      59981         78        78.00  \n",
       "24481      59981          0         0.00  \n",
       "24482      59981          0         0.00  \n",
       "24483      59981          0         0.00  \n",
       "24484      59981          1         1.00  \n",
       "24485      59981          2         2.00  \n",
       "24486      59981         45        45.00  \n",
       "24487      59981        151       151.00  \n",
       "24488      59981          1         1.00  \n",
       "24489      59981          0         0.00  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "    for index, row in atmos.iterrows():\n",
    "        if row['accumPrec_1'] == 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = 0\n",
    "        elif row['accumPrec_1'] >= 32000 and row['accumPrec_1'] < 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 32000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 31000 and row['accumPrec_1'] < 32000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 31000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 30000 and row['accumPrec_1'] < 31000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 30000) * 0.1\n",
    "        if index > 50:\n",
    "            break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>0.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>0.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0          0.0  \n",
       "1          50136      31001          0.1  \n",
       "2          50136      31009          0.9  \n",
       "3          50136      32700          0.0  \n",
       "4          50136          0          0.0  \n",
       "5          50136          0          0.0  \n",
       "6          50136          0          0.0  \n",
       "7          50136          0          0.0  \n",
       "8          50136          0          0.0  \n",
       "9          50136          0          0.0  \n",
       "10         50136          0          0.0  \n",
       "11         50136          0          0.0  \n",
       "12         50136          0          0.0  \n",
       "13         50136          0          0.0  \n",
       "14         50136          0          0.0  \n",
       "15         50136          0          0.0  \n",
       "16         50136          0          0.0  \n",
       "17         50136      32700          0.0  \n",
       "18         50136          0          0.0  \n",
       "19         50136          0          0.0  \n",
       "20         50136          0          0.0  \n",
       "21         50136          0          0.0  \n",
       "22         50136          0          0.0  \n",
       "23         50136          0          0.0  \n",
       "24         50136          0          0.0  \n",
       "25         50136          0          0.0  \n",
       "26         50136          0          0.0  \n",
       "27         50136          0          0.0  \n",
       "28         50136          0          0.0  \n",
       "29         50136          0          0.0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700      32700.0  \n",
       "24461      59981      32700      32700.0  \n",
       "24462      59981      32700      32700.0  \n",
       "24463      59981          0          0.0  \n",
       "24464      59981      32700      32700.0  \n",
       "24465      59981          0          0.0  \n",
       "24466      59981          0          0.0  \n",
       "24467      59981         30         30.0  \n",
       "24468      59981        124        124.0  \n",
       "24469      59981        682        682.0  \n",
       "24470      59981          5          5.0  \n",
       "24471      59981      32700      32700.0  \n",
       "24472      59981      32700      32700.0  \n",
       "24473      59981          0          0.0  \n",
       "24474      59981         45         45.0  \n",
       "24475      59981         39         39.0  \n",
       "24476      59981          0          0.0  \n",
       "24477      59981      32700      32700.0  \n",
       "24478      59981         10         10.0  \n",
       "24479      59981         32         32.0  \n",
       "24480      59981         78         78.0  \n",
       "24481      59981          0          0.0  \n",
       "24482      59981          0          0.0  \n",
       "24483      59981          0          0.0  \n",
       "24484      59981          1          1.0  \n",
       "24485      59981          2          2.0  \n",
       "24486      59981         45         45.0  \n",
       "24487      59981        151        151.0  \n",
       "24488      59981          1          1.0  \n",
       "24489      59981          0          0.0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "    for index, row in atmos.iterrows():\n",
    "        atmos.loc[index, 'maxDayTemp'] = row['maxDayTemp'] * 0.1\n",
    "        atmos.loc[index, 'minDayTemp'] = row['minDayTemp'] * 0.1\n",
    "        if index > 50:\n",
    "            break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>0.1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-39.200001</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>0.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.099998</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-29.000000</td>\n",
       "      <td>-42.200001</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-30.900000</td>\n",
       "      <td>-44.500000</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.299999</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-32.000000</td>\n",
       "      <td>-43.000000</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-41.299999</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-31.600000</td>\n",
       "      <td>-41.500000</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-28.100000</td>\n",
       "      <td>-43.400002</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-28.799999</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-27.400000</td>\n",
       "      <td>-36.700001</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-26.100000</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-27.799999</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.900002</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-46.200001</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-27.200001</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-24.500000</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-26.500000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-23.500000</td>\n",
       "      <td>-38.200001</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-25.100000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-28.600000</td>\n",
       "      <td>-43.700001</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-30.799999</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-24.400000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-22.500000</td>\n",
       "      <td>-34.099998</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-19.799999</td>\n",
       "      <td>-35.400002</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-15.600000</td>\n",
       "      <td>-30.000000</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-14.800000</td>\n",
       "      <td>-31.200001</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-13.400000</td>\n",
       "      <td>-32.900002</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.000000</td>\n",
       "      <td>253.000000</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.000000</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>236.000000</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.000000</td>\n",
       "      <td>235.000000</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>239.000000</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.000000</td>\n",
       "      <td>219.000000</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.000000</td>\n",
       "      <td>232.000000</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.000000</td>\n",
       "      <td>223.000000</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.000000</td>\n",
       "      <td>208.000000</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.000000</td>\n",
       "      <td>198.000000</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>215.000000</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.000000</td>\n",
       "      <td>185.000000</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.000000</td>\n",
       "      <td>213.000000</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.000000</td>\n",
       "      <td>214.000000</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136  -34.000000  -44.599998      1960-01-01   \n",
       "1         1960-01-02     50136  -34.000000  -43.599998      1960-01-02   \n",
       "2         1960-01-03     50136  -30.299999  -39.200001      1960-01-03   \n",
       "3         1960-01-04     50136  -34.000000  -43.099998      1960-01-04   \n",
       "4         1960-01-05     50136  -29.000000  -42.200001      1960-01-05   \n",
       "5         1960-01-06     50136  -30.900000  -44.500000      1960-01-06   \n",
       "6         1960-01-07     50136  -34.000000  -45.299999      1960-01-07   \n",
       "7         1960-01-08     50136  -32.000000  -43.000000      1960-01-08   \n",
       "8         1960-01-09     50136  -30.299999  -41.299999      1960-01-09   \n",
       "9         1960-01-10     50136  -31.600000  -41.500000      1960-01-10   \n",
       "10        1960-01-11     50136  -28.100000  -43.400002      1960-01-11   \n",
       "11        1960-01-12     50136  -28.799999  -40.299999      1960-01-12   \n",
       "12        1960-01-13     50136  -27.400000  -36.700001      1960-01-13   \n",
       "13        1960-01-14     50136  -26.100000  -40.299999      1960-01-14   \n",
       "14        1960-01-15     50136  -27.799999  -39.000000      1960-01-15   \n",
       "15        1960-01-16     50136  -34.000000  -45.900002      1960-01-16   \n",
       "16        1960-01-17     50136  -34.000000  -46.200001      1960-01-17   \n",
       "17        1960-01-18     50136  -27.200001  -42.500000      1960-01-18   \n",
       "18        1960-01-19     50136  -24.500000  -39.000000      1960-01-19   \n",
       "19        1960-01-20     50136  -26.500000  -42.500000      1960-01-20   \n",
       "20        1960-01-21     50136  -23.500000  -38.200001      1960-01-21   \n",
       "21        1960-01-22     50136  -25.100000  -42.500000      1960-01-22   \n",
       "22        1960-01-23     50136  -28.600000  -43.700001      1960-01-23   \n",
       "23        1960-01-24     50136  -30.799999  -44.599998      1960-01-24   \n",
       "24        1960-01-25     50136  -24.400000  -43.599998      1960-01-25   \n",
       "25        1960-01-26     50136  -22.500000  -34.099998      1960-01-26   \n",
       "26        1960-01-27     50136  -19.799999  -35.400002      1960-01-27   \n",
       "27        1960-01-28     50136  -15.600000  -30.000000      1960-01-28   \n",
       "28        1960-01-29     50136  -14.800000  -31.200001      1960-01-29   \n",
       "29        1960-01-30     50136  -13.400000  -32.900002      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981  285.000000  253.000000      1963-12-02   \n",
       "24461     1963-12-03     59981  281.000000  242.000000      1963-12-03   \n",
       "24462     1963-12-04     59981  264.000000  236.000000      1963-12-04   \n",
       "24463     1963-12-05     59981  269.000000  233.000000      1963-12-05   \n",
       "24464     1963-12-06     59981  280.000000  235.000000      1963-12-06   \n",
       "24465     1963-12-07     59981  282.000000  229.000000      1963-12-07   \n",
       "24466     1963-12-08     59981  282.000000  239.000000      1963-12-08   \n",
       "24467     1963-12-09     59981  283.000000  229.000000      1963-12-09   \n",
       "24468     1963-12-10     59981  271.000000  225.000000      1963-12-10   \n",
       "24469     1963-12-11     59981  245.000000  217.000000      1963-12-11   \n",
       "24470     1963-12-12     59981  252.000000  219.000000      1963-12-12   \n",
       "24471     1963-12-13     59981  257.000000  225.000000      1963-12-13   \n",
       "24472     1963-12-14     59981  267.000000  225.000000      1963-12-14   \n",
       "24473     1963-12-15     59981  265.000000  233.000000      1963-12-15   \n",
       "24474     1963-12-16     59981  261.000000  217.000000      1963-12-16   \n",
       "24475     1963-12-17     59981  264.000000  225.000000      1963-12-17   \n",
       "24476     1963-12-18     59981  262.000000  232.000000      1963-12-18   \n",
       "24477     1963-12-19     59981  250.000000  223.000000      1963-12-19   \n",
       "24478     1963-12-20     59981  246.000000  208.000000      1963-12-20   \n",
       "24479     1963-12-21     59981  237.000000  206.000000      1963-12-21   \n",
       "24480     1963-12-22     59981  256.000000  198.000000      1963-12-22   \n",
       "24481     1963-12-23     59981  261.000000  215.000000      1963-12-23   \n",
       "24482     1963-12-24     59981  268.000000  185.000000      1963-12-24   \n",
       "24483     1963-12-25     59981  270.000000  231.000000      1963-12-25   \n",
       "24484     1963-12-26     59981  264.000000  229.000000      1963-12-26   \n",
       "24485     1963-12-27     59981  248.000000  213.000000      1963-12-27   \n",
       "24486     1963-12-28     59981  242.000000  206.000000      1963-12-28   \n",
       "24487     1963-12-29     59981  260.000000  214.000000      1963-12-29   \n",
       "24488     1963-12-30     59981  266.000000  229.000000      1963-12-30   \n",
       "24489     1963-12-31     59981  266.000000  231.000000      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0          0.0  \n",
       "1          50136      31001          0.1  \n",
       "2          50136      31009          0.9  \n",
       "3          50136      32700          0.0  \n",
       "4          50136          0          0.0  \n",
       "5          50136          0          0.0  \n",
       "6          50136          0          0.0  \n",
       "7          50136          0          0.0  \n",
       "8          50136          0          0.0  \n",
       "9          50136          0          0.0  \n",
       "10         50136          0          0.0  \n",
       "11         50136          0          0.0  \n",
       "12         50136          0          0.0  \n",
       "13         50136          0          0.0  \n",
       "14         50136          0          0.0  \n",
       "15         50136          0          0.0  \n",
       "16         50136          0          0.0  \n",
       "17         50136      32700          0.0  \n",
       "18         50136          0          0.0  \n",
       "19         50136          0          0.0  \n",
       "20         50136          0          0.0  \n",
       "21         50136          0          0.0  \n",
       "22         50136          0          0.0  \n",
       "23         50136          0          0.0  \n",
       "24         50136          0          0.0  \n",
       "25         50136          0          0.0  \n",
       "26         50136          0          0.0  \n",
       "27         50136          0          0.0  \n",
       "28         50136          0          0.0  \n",
       "29         50136          0          0.0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700      32700.0  \n",
       "24461      59981      32700      32700.0  \n",
       "24462      59981      32700      32700.0  \n",
       "24463      59981          0          0.0  \n",
       "24464      59981      32700      32700.0  \n",
       "24465      59981          0          0.0  \n",
       "24466      59981          0          0.0  \n",
       "24467      59981         30         30.0  \n",
       "24468      59981        124        124.0  \n",
       "24469      59981        682        682.0  \n",
       "24470      59981          5          5.0  \n",
       "24471      59981      32700      32700.0  \n",
       "24472      59981      32700      32700.0  \n",
       "24473      59981          0          0.0  \n",
       "24474      59981         45         45.0  \n",
       "24475      59981         39         39.0  \n",
       "24476      59981          0          0.0  \n",
       "24477      59981      32700      32700.0  \n",
       "24478      59981         10         10.0  \n",
       "24479      59981         32         32.0  \n",
       "24480      59981         78         78.0  \n",
       "24481      59981          0          0.0  \n",
       "24482      59981          0          0.0  \n",
       "24483      59981          0          0.0  \n",
       "24484      59981          1          1.0  \n",
       "24485      59981          2          2.0  \n",
       "24486      59981         45         45.0  \n",
       "24487      59981        151        151.0  \n",
       "24488      59981          1          1.0  \n",
       "24489      59981          0          0.0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'atmos' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-1-097f072a300e>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0matmos\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;31mNameError\u001b[0m: name 'atmos' is not defined"
     ]
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "ename": "AttributeError",
     "evalue": "'Series' object has no attribute 'month'",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mAttributeError\u001b[0m                            Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-9-de0b46920bea>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0matmos\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'year_month_day'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmonth\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32mP:\\AoiSoft\\ANNACONDA\\lib\\site-packages\\pandas\\core\\generic.pyc\u001b[0m in \u001b[0;36m__getattr__\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m   3079\u001b[0m             \u001b[1;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_info_axis\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m   3080\u001b[0m                 \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3081\u001b[0;31m             \u001b[1;32mreturn\u001b[0m \u001b[0mobject\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m__getattribute__\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mname\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m   3082\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m   3083\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m__setattr__\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mname\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mAttributeError\u001b[0m: 'Series' object has no attribute 'month'"
     ]
    }
   ],
   "source": [
    "atmos['year_month_day'].month"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  \n",
       "0          50136          0            0  \n",
       "1          50136      31001        31001  \n",
       "2          50136      31009        31009  \n",
       "3          50136      32700        32700  \n",
       "4          50136          0            0  \n",
       "5          50136          0            0  \n",
       "6          50136          0            0  \n",
       "7          50136          0            0  \n",
       "8          50136          0            0  \n",
       "9          50136          0            0  \n",
       "10         50136          0            0  \n",
       "11         50136          0            0  \n",
       "12         50136          0            0  \n",
       "13         50136          0            0  \n",
       "14         50136          0            0  \n",
       "15         50136          0            0  \n",
       "16         50136          0            0  \n",
       "17         50136      32700        32700  \n",
       "18         50136          0            0  \n",
       "19         50136          0            0  \n",
       "20         50136          0            0  \n",
       "21         50136          0            0  \n",
       "22         50136          0            0  \n",
       "23         50136          0            0  \n",
       "24         50136          0            0  \n",
       "25         50136          0            0  \n",
       "26         50136          0            0  \n",
       "27         50136          0            0  \n",
       "28         50136          0            0  \n",
       "29         50136          0            0  \n",
       "...          ...        ...          ...  \n",
       "24460      59981      32700        32700  \n",
       "24461      59981      32700        32700  \n",
       "24462      59981      32700        32700  \n",
       "24463      59981          0            0  \n",
       "24464      59981      32700        32700  \n",
       "24465      59981          0            0  \n",
       "24466      59981          0            0  \n",
       "24467      59981         30           30  \n",
       "24468      59981        124          124  \n",
       "24469      59981        682          682  \n",
       "24470      59981          5            5  \n",
       "24471      59981      32700        32700  \n",
       "24472      59981      32700        32700  \n",
       "24473      59981          0            0  \n",
       "24474      59981         45           45  \n",
       "24475      59981         39           39  \n",
       "24476      59981          0            0  \n",
       "24477      59981      32700        32700  \n",
       "24478      59981         10           10  \n",
       "24479      59981         32           32  \n",
       "24480      59981         78           78  \n",
       "24481      59981          0            0  \n",
       "24482      59981          0            0  \n",
       "24483      59981          0            0  \n",
       "24484      59981          1            1  \n",
       "24485      59981          2            2  \n",
       "24486      59981         45           45  \n",
       "24487      59981        151          151  \n",
       "24488      59981          1            1  \n",
       "24489      59981          0            0  \n",
       "\n",
       "[1167253 rows x 8 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       1960-01-01\n",
       "1       1960-01-02\n",
       "2       1960-01-03\n",
       "3       1960-01-04\n",
       "4       1960-01-05\n",
       "5       1960-01-06\n",
       "6       1960-01-07\n",
       "7       1960-01-08\n",
       "8       1960-01-09\n",
       "9       1960-01-10\n",
       "10      1960-01-11\n",
       "11      1960-01-12\n",
       "12      1960-01-13\n",
       "13      1960-01-14\n",
       "14      1960-01-15\n",
       "15      1960-01-16\n",
       "16      1960-01-17\n",
       "17      1960-01-18\n",
       "18      1960-01-19\n",
       "19      1960-01-20\n",
       "20      1960-01-21\n",
       "21      1960-01-22\n",
       "22      1960-01-23\n",
       "23      1960-01-24\n",
       "24      1960-01-25\n",
       "25      1960-01-26\n",
       "26      1960-01-27\n",
       "27      1960-01-28\n",
       "28      1960-01-29\n",
       "29      1960-01-30\n",
       "           ...    \n",
       "24460   1963-12-02\n",
       "24461   1963-12-03\n",
       "24462   1963-12-04\n",
       "24463   1963-12-05\n",
       "24464   1963-12-06\n",
       "24465   1963-12-07\n",
       "24466   1963-12-08\n",
       "24467   1963-12-09\n",
       "24468   1963-12-10\n",
       "24469   1963-12-11\n",
       "24470   1963-12-12\n",
       "24471   1963-12-13\n",
       "24472   1963-12-14\n",
       "24473   1963-12-15\n",
       "24474   1963-12-16\n",
       "24475   1963-12-17\n",
       "24476   1963-12-18\n",
       "24477   1963-12-19\n",
       "24478   1963-12-20\n",
       "24479   1963-12-21\n",
       "24480   1963-12-22\n",
       "24481   1963-12-23\n",
       "24482   1963-12-24\n",
       "24483   1963-12-25\n",
       "24484   1963-12-26\n",
       "24485   1963-12-27\n",
       "24486   1963-12-28\n",
       "24487   1963-12-29\n",
       "24488   1963-12-30\n",
       "24489   1963-12-31\n",
       "Name: year_month_day, Length: 1167253, dtype: datetime64[ns]"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos['year_month_day']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "atmos['year'] = atmos['year_month_day'].dt.year"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year_month_day</th>\n",
       "      <th>stationID</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>accumPrec_1</th>\n",
       "      <th>day</th>\n",
       "      <th>month</th>\n",
       "      <th>year</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>31001</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-392.0</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>31009</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-431.0</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>4</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>-290.0</td>\n",
       "      <td>-422.0</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>5</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>-309.0</td>\n",
       "      <td>-445.0</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>6</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-453.0</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>-320.0</td>\n",
       "      <td>-430.0</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>-303.0</td>\n",
       "      <td>-413.0</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>-316.0</td>\n",
       "      <td>-415.0</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>10</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>-281.0</td>\n",
       "      <td>-434.0</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>11</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>-288.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>12</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>-274.0</td>\n",
       "      <td>-367.0</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>13</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>-261.0</td>\n",
       "      <td>-403.0</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>14</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>-278.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>15</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-459.0</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>16</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>-340.0</td>\n",
       "      <td>-462.0</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>17</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>-272.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>18</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>-245.0</td>\n",
       "      <td>-390.0</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>19</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>-265.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>20</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>-235.0</td>\n",
       "      <td>-382.0</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>21</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>-251.0</td>\n",
       "      <td>-425.0</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>22</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>-286.0</td>\n",
       "      <td>-437.0</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>23</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>-308.0</td>\n",
       "      <td>-446.0</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>24</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>-244.0</td>\n",
       "      <td>-436.0</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>25</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>-225.0</td>\n",
       "      <td>-341.0</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>26</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>-198.0</td>\n",
       "      <td>-354.0</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>27</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>-156.0</td>\n",
       "      <td>-300.0</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>28</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>-148.0</td>\n",
       "      <td>-312.0</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>29</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>-134.0</td>\n",
       "      <td>-329.0</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>30</td>\n",
       "      <td>1</td>\n",
       "      <td>1960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>285.0</td>\n",
       "      <td>253.0</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>2</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>281.0</td>\n",
       "      <td>242.0</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>3</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>236.0</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>4</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>269.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>5</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>280.0</td>\n",
       "      <td>235.0</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>6</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>282.0</td>\n",
       "      <td>239.0</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>8</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>283.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>30</td>\n",
       "      <td>9</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>271.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>124</td>\n",
       "      <td>10</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>245.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>682</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>252.0</td>\n",
       "      <td>219.0</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>257.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>13</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>267.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>14</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>265.0</td>\n",
       "      <td>233.0</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>15</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>217.0</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "      <td>16</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>225.0</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>39</td>\n",
       "      <td>17</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>262.0</td>\n",
       "      <td>232.0</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>18</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>250.0</td>\n",
       "      <td>223.0</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>32700</td>\n",
       "      <td>19</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>246.0</td>\n",
       "      <td>208.0</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>10</td>\n",
       "      <td>20</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>237.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>32</td>\n",
       "      <td>21</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>256.0</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>78</td>\n",
       "      <td>22</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>261.0</td>\n",
       "      <td>215.0</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>23</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>268.0</td>\n",
       "      <td>185.0</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>24</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>270.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>25</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>264.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>26</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>248.0</td>\n",
       "      <td>213.0</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>27</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>242.0</td>\n",
       "      <td>206.0</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>45</td>\n",
       "      <td>28</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>260.0</td>\n",
       "      <td>214.0</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>151</td>\n",
       "      <td>29</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>229.0</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>266.0</td>\n",
       "      <td>231.0</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>31</td>\n",
       "      <td>12</td>\n",
       "      <td>1963</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      year_month_day stationID  maxDayTemp  minDayTemp _year_month_day  \\\n",
       "0         1960-01-01     50136      -340.0      -446.0      1960-01-01   \n",
       "1         1960-01-02     50136      -340.0      -436.0      1960-01-02   \n",
       "2         1960-01-03     50136      -303.0      -392.0      1960-01-03   \n",
       "3         1960-01-04     50136      -340.0      -431.0      1960-01-04   \n",
       "4         1960-01-05     50136      -290.0      -422.0      1960-01-05   \n",
       "5         1960-01-06     50136      -309.0      -445.0      1960-01-06   \n",
       "6         1960-01-07     50136      -340.0      -453.0      1960-01-07   \n",
       "7         1960-01-08     50136      -320.0      -430.0      1960-01-08   \n",
       "8         1960-01-09     50136      -303.0      -413.0      1960-01-09   \n",
       "9         1960-01-10     50136      -316.0      -415.0      1960-01-10   \n",
       "10        1960-01-11     50136      -281.0      -434.0      1960-01-11   \n",
       "11        1960-01-12     50136      -288.0      -403.0      1960-01-12   \n",
       "12        1960-01-13     50136      -274.0      -367.0      1960-01-13   \n",
       "13        1960-01-14     50136      -261.0      -403.0      1960-01-14   \n",
       "14        1960-01-15     50136      -278.0      -390.0      1960-01-15   \n",
       "15        1960-01-16     50136      -340.0      -459.0      1960-01-16   \n",
       "16        1960-01-17     50136      -340.0      -462.0      1960-01-17   \n",
       "17        1960-01-18     50136      -272.0      -425.0      1960-01-18   \n",
       "18        1960-01-19     50136      -245.0      -390.0      1960-01-19   \n",
       "19        1960-01-20     50136      -265.0      -425.0      1960-01-20   \n",
       "20        1960-01-21     50136      -235.0      -382.0      1960-01-21   \n",
       "21        1960-01-22     50136      -251.0      -425.0      1960-01-22   \n",
       "22        1960-01-23     50136      -286.0      -437.0      1960-01-23   \n",
       "23        1960-01-24     50136      -308.0      -446.0      1960-01-24   \n",
       "24        1960-01-25     50136      -244.0      -436.0      1960-01-25   \n",
       "25        1960-01-26     50136      -225.0      -341.0      1960-01-26   \n",
       "26        1960-01-27     50136      -198.0      -354.0      1960-01-27   \n",
       "27        1960-01-28     50136      -156.0      -300.0      1960-01-28   \n",
       "28        1960-01-29     50136      -148.0      -312.0      1960-01-29   \n",
       "29        1960-01-30     50136      -134.0      -329.0      1960-01-30   \n",
       "...              ...       ...         ...         ...             ...   \n",
       "24460     1963-12-02     59981       285.0       253.0      1963-12-02   \n",
       "24461     1963-12-03     59981       281.0       242.0      1963-12-03   \n",
       "24462     1963-12-04     59981       264.0       236.0      1963-12-04   \n",
       "24463     1963-12-05     59981       269.0       233.0      1963-12-05   \n",
       "24464     1963-12-06     59981       280.0       235.0      1963-12-06   \n",
       "24465     1963-12-07     59981       282.0       229.0      1963-12-07   \n",
       "24466     1963-12-08     59981       282.0       239.0      1963-12-08   \n",
       "24467     1963-12-09     59981       283.0       229.0      1963-12-09   \n",
       "24468     1963-12-10     59981       271.0       225.0      1963-12-10   \n",
       "24469     1963-12-11     59981       245.0       217.0      1963-12-11   \n",
       "24470     1963-12-12     59981       252.0       219.0      1963-12-12   \n",
       "24471     1963-12-13     59981       257.0       225.0      1963-12-13   \n",
       "24472     1963-12-14     59981       267.0       225.0      1963-12-14   \n",
       "24473     1963-12-15     59981       265.0       233.0      1963-12-15   \n",
       "24474     1963-12-16     59981       261.0       217.0      1963-12-16   \n",
       "24475     1963-12-17     59981       264.0       225.0      1963-12-17   \n",
       "24476     1963-12-18     59981       262.0       232.0      1963-12-18   \n",
       "24477     1963-12-19     59981       250.0       223.0      1963-12-19   \n",
       "24478     1963-12-20     59981       246.0       208.0      1963-12-20   \n",
       "24479     1963-12-21     59981       237.0       206.0      1963-12-21   \n",
       "24480     1963-12-22     59981       256.0       198.0      1963-12-22   \n",
       "24481     1963-12-23     59981       261.0       215.0      1963-12-23   \n",
       "24482     1963-12-24     59981       268.0       185.0      1963-12-24   \n",
       "24483     1963-12-25     59981       270.0       231.0      1963-12-25   \n",
       "24484     1963-12-26     59981       264.0       229.0      1963-12-26   \n",
       "24485     1963-12-27     59981       248.0       213.0      1963-12-27   \n",
       "24486     1963-12-28     59981       242.0       206.0      1963-12-28   \n",
       "24487     1963-12-29     59981       260.0       214.0      1963-12-29   \n",
       "24488     1963-12-30     59981       266.0       229.0      1963-12-30   \n",
       "24489     1963-12-31     59981       266.0       231.0      1963-12-31   \n",
       "\n",
       "      _stationID  accumPrec  accumPrec_1  day  month  year  \n",
       "0          50136          0            0    1      1  1960  \n",
       "1          50136      31001        31001    2      1  1960  \n",
       "2          50136      31009        31009    3      1  1960  \n",
       "3          50136      32700        32700    4      1  1960  \n",
       "4          50136          0            0    5      1  1960  \n",
       "5          50136          0            0    6      1  1960  \n",
       "6          50136          0            0    7      1  1960  \n",
       "7          50136          0            0    8      1  1960  \n",
       "8          50136          0            0    9      1  1960  \n",
       "9          50136          0            0   10      1  1960  \n",
       "10         50136          0            0   11      1  1960  \n",
       "11         50136          0            0   12      1  1960  \n",
       "12         50136          0            0   13      1  1960  \n",
       "13         50136          0            0   14      1  1960  \n",
       "14         50136          0            0   15      1  1960  \n",
       "15         50136          0            0   16      1  1960  \n",
       "16         50136          0            0   17      1  1960  \n",
       "17         50136      32700        32700   18      1  1960  \n",
       "18         50136          0            0   19      1  1960  \n",
       "19         50136          0            0   20      1  1960  \n",
       "20         50136          0            0   21      1  1960  \n",
       "21         50136          0            0   22      1  1960  \n",
       "22         50136          0            0   23      1  1960  \n",
       "23         50136          0            0   24      1  1960  \n",
       "24         50136          0            0   25      1  1960  \n",
       "25         50136          0            0   26      1  1960  \n",
       "26         50136          0            0   27      1  1960  \n",
       "27         50136          0            0   28      1  1960  \n",
       "28         50136          0            0   29      1  1960  \n",
       "29         50136          0            0   30      1  1960  \n",
       "...          ...        ...          ...  ...    ...   ...  \n",
       "24460      59981      32700        32700    2     12  1963  \n",
       "24461      59981      32700        32700    3     12  1963  \n",
       "24462      59981      32700        32700    4     12  1963  \n",
       "24463      59981          0            0    5     12  1963  \n",
       "24464      59981      32700        32700    6     12  1963  \n",
       "24465      59981          0            0    7     12  1963  \n",
       "24466      59981          0            0    8     12  1963  \n",
       "24467      59981         30           30    9     12  1963  \n",
       "24468      59981        124          124   10     12  1963  \n",
       "24469      59981        682          682   11     12  1963  \n",
       "24470      59981          5            5   12     12  1963  \n",
       "24471      59981      32700        32700   13     12  1963  \n",
       "24472      59981      32700        32700   14     12  1963  \n",
       "24473      59981          0            0   15     12  1963  \n",
       "24474      59981         45           45   16     12  1963  \n",
       "24475      59981         39           39   17     12  1963  \n",
       "24476      59981          0            0   18     12  1963  \n",
       "24477      59981      32700        32700   19     12  1963  \n",
       "24478      59981         10           10   20     12  1963  \n",
       "24479      59981         32           32   21     12  1963  \n",
       "24480      59981         78           78   22     12  1963  \n",
       "24481      59981          0            0   23     12  1963  \n",
       "24482      59981          0            0   24     12  1963  \n",
       "24483      59981          0            0   25     12  1963  \n",
       "24484      59981          1            1   26     12  1963  \n",
       "24485      59981          2            2   27     12  1963  \n",
       "24486      59981         45           45   28     12  1963  \n",
       "24487      59981        151          151   29     12  1963  \n",
       "24488      59981          1            1   30     12  1963  \n",
       "24489      59981          0            0   31     12  1963  \n",
       "\n",
       "[1167253 rows x 11 columns]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['year_month_day', 'stationID', 'maxDayTemp', 'minDayTemp', '_year_month_day', '_stationID', 'accumPrec', 'accumPrec_1', 'year', 'month', 'day']\n"
     ]
    }
   ],
   "source": [
    "#!/usr/bin/env python\n",
    "# -*- coding: utf-8 -*-\n",
    "# @Time    : 2017/11/13 10:55\n",
    "# @Author  : Deyu.Tian\n",
    "# @Site    : \n",
    "# @File    : dataClean.py\n",
    "# @Software: PyCharm Community Edition\n",
    "\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "\n",
    "import config\n",
    "tempDir = '{}\\\\temperture'.format(config.obsvDataDir)\n",
    "precDir = '{}\\\\preciption'.format(config.obsvDataDir)\n",
    "evapDir = '{}\\\\evaporation'.format(config.obsvDataDir)\n",
    "surfDir = '{}\\\\surfaceTemp'.format(config.obsvDataDir)\n",
    "windDir = '{}\\\\windSpeed'.format(config.obsvDataDir)\n",
    "\n",
    "from util import *\n",
    "TEMPS = list_all_texts(tempDir)\n",
    "PRECS = list_all_texts(precDir)\n",
    "EVAPS = list_all_texts(evapDir)\n",
    "SURFS = list_all_texts(surfDir)\n",
    "WINDS = list_all_texts(windDir)\n",
    "ATMOS = [TEMPS, PRECS]\n",
    "\n",
    "\n",
    "\n",
    "def _post_processing(atmos):\n",
    "    \"\"\"\n",
    "    对合并后表格后处理\n",
    "    :return: 处理后的表格\n",
    "    \"\"\"\n",
    "    atmos.columns = ['year_month_day', 'stationID', 'maxDayTemp', 'minDayTemp', '_year_month_day', '_stationID',\n",
    "                     'accumPrec']\n",
    "    atmos['accumPrec_1'] = atmos['accumPrec']\n",
    "    atmos['accumPrec_1'] = pd.to_numeric(atmos['accumPrec_1'], errors='coerce')\n",
    "    atmos['year'] = atmos['year_month_day'].dt.year\n",
    "    atmos['month'] = atmos['year_month_day'].dt.month\n",
    "    atmos['day'] = atmos['year_month_day'].dt.day\n",
    "    cols = atmos.columns.tolist()\n",
    "    print(cols)\n",
    "    cols = [cols[1]] + cols[-3:] + [cols[-4]] + cols[2:7] + [cols[0]]\n",
    "    atmos = atmos[cols]\n",
    "    for index, row in atmos.iterrows():\n",
    "        atmos.loc[index, 'maxDayTemp'] = row['maxDayTemp'] * 0.1\n",
    "        atmos.loc[index, 'minDayTemp'] = row['minDayTemp'] * 0.1\n",
    "        if row['accumPrec_1'] == 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = 0\n",
    "        elif row['accumPrec_1'] >= 32000 and row['accumPrec_1'] < 32700:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 32000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 31000 and row['accumPrec_1'] < 32000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 31000) * 0.1\n",
    "        elif row['accumPrec_1'] >= 30000 and row['accumPrec_1'] < 31000:\n",
    "            atmos.loc[index, 'accumPrec_1'] = (row['accumPrec_1'] - 30000) * 0.1\n",
    "        if index > 50:\n",
    "            break\n",
    "    return atmos\n",
    "\n",
    "def combine_all_files():\n",
    "    temp = pd.read_table(TEMPS[0], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                         dtype={'stationID': np.string0, 'maxDayTemp': np.float32, 'minDayTemp': np.float32},\n",
    "                         parse_dates=[[1, 2, 3]])\n",
    "    prec = pd.read_table(PRECS[0], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                         names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                         dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "    atmos = pd.concat([temp, prec], axis=1)\n",
    "    for i in range(len(ATMOS)): #2\n",
    "        for j in range(1, len(ATMOS[i])): #48\n",
    "            if i == 0:\n",
    "                tempe = pd.read_table(TEMPS[j], sep='\\s+', usecols=[0, 4, 5, 6, 8, 9],\n",
    "                                        names=['stationID', 'year', 'month', 'day', 'maxDayTemp', 'minDayTemp'],\n",
    "                                        dtype={'stationID': np.string0, 'maxDayTemp': np.float32,\n",
    "                                               'minDayTemp': np.float32}, parse_dates=[[1, 2, 3]])\n",
    "                temp = pd.concat([temp, tempe])\n",
    "            if i == 1:\n",
    "                prece = pd.read_table(PRECS[j], sep='\\s+', usecols=[0, 4, 5, 6, 9],\n",
    "                                     names=['stationID', 'year', 'month', 'day', 'accumPrec'],\n",
    "                                     dtype={'stationID': np.string0, 'accumPrec': np.int32}, parse_dates=[[1, 2, 3]])\n",
    "                prec = pd.concat([prec, prece])\n",
    "    atmose = pd.concat([temp, prec], axis=1)\n",
    "    atmos = pd.concat([atmos, atmose])\n",
    "    atmos = _post_processing(atmos)\n",
    "    return atmos\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    atmos = combine_all_files()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {
    "collapsed": false,
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stationID</th>\n",
       "      <th>year</th>\n",
       "      <th>month</th>\n",
       "      <th>day</th>\n",
       "      <th>accumPrec_1</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>year_month_day</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>0.1</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>1960-01-02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>0.9</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-39.200001</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>1960-01-03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.099998</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>1960-01-04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-29.000000</td>\n",
       "      <td>-42.200001</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>6</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.900000</td>\n",
       "      <td>-44.500000</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>7</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.299999</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>8</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-32.000000</td>\n",
       "      <td>-43.000000</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-41.299999</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>10</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-31.600000</td>\n",
       "      <td>-41.500000</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>11</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.100000</td>\n",
       "      <td>-43.400002</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.799999</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>13</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.400000</td>\n",
       "      <td>-36.700001</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>14</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-26.100000</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>15</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.799999</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.900002</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>17</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-46.200001</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>18</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.200001</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>1960-01-18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-24.500000</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>20</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-26.500000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-23.500000</td>\n",
       "      <td>-38.200001</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>22</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-25.100000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>23</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.600000</td>\n",
       "      <td>-43.700001</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>24</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.799999</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>25</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-24.400000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>26</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-22.500000</td>\n",
       "      <td>-34.099998</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>27</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-19.799999</td>\n",
       "      <td>-35.400002</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>28</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-15.600000</td>\n",
       "      <td>-30.000000</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-14.800000</td>\n",
       "      <td>-31.200001</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>30</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-13.400000</td>\n",
       "      <td>-32.900002</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>2</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>285.000000</td>\n",
       "      <td>253.000000</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>281.000000</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>4</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>236.000000</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>269.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>6</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>280.000000</td>\n",
       "      <td>235.000000</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>7</td>\n",
       "      <td>0.0</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>8</td>\n",
       "      <td>0.0</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>239.000000</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>9</td>\n",
       "      <td>30.0</td>\n",
       "      <td>283.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>1963-12-09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>10</td>\n",
       "      <td>124.0</td>\n",
       "      <td>271.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>1963-12-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>11</td>\n",
       "      <td>682.0</td>\n",
       "      <td>245.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>1963-12-11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>5.0</td>\n",
       "      <td>252.000000</td>\n",
       "      <td>219.000000</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>1963-12-12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>13</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>257.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>267.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>0.0</td>\n",
       "      <td>265.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>16</td>\n",
       "      <td>45.0</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>1963-12-16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>17</td>\n",
       "      <td>39.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>1963-12-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>18</td>\n",
       "      <td>0.0</td>\n",
       "      <td>262.000000</td>\n",
       "      <td>232.000000</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>19</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>250.000000</td>\n",
       "      <td>223.000000</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>20</td>\n",
       "      <td>10.0</td>\n",
       "      <td>246.000000</td>\n",
       "      <td>208.000000</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>1963-12-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>21</td>\n",
       "      <td>32.0</td>\n",
       "      <td>237.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>1963-12-21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>22</td>\n",
       "      <td>78.0</td>\n",
       "      <td>256.000000</td>\n",
       "      <td>198.000000</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>1963-12-22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>23</td>\n",
       "      <td>0.0</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>215.000000</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>24</td>\n",
       "      <td>0.0</td>\n",
       "      <td>268.000000</td>\n",
       "      <td>185.000000</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>25</td>\n",
       "      <td>0.0</td>\n",
       "      <td>270.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>26</td>\n",
       "      <td>1.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1963-12-26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>27</td>\n",
       "      <td>2.0</td>\n",
       "      <td>248.000000</td>\n",
       "      <td>213.000000</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>1963-12-27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>28</td>\n",
       "      <td>45.0</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>1963-12-28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>29</td>\n",
       "      <td>151.0</td>\n",
       "      <td>260.000000</td>\n",
       "      <td>214.000000</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>1963-12-29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>30</td>\n",
       "      <td>1.0</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1963-12-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>31</td>\n",
       "      <td>0.0</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-31</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      stationID  year  month  day  accumPrec_1  maxDayTemp  minDayTemp  \\\n",
       "0         50136  1960      1    1          0.0  -34.000000  -44.599998   \n",
       "1         50136  1960      1    2          0.1  -34.000000  -43.599998   \n",
       "2         50136  1960      1    3          0.9  -30.299999  -39.200001   \n",
       "3         50136  1960      1    4          0.0  -34.000000  -43.099998   \n",
       "4         50136  1960      1    5          0.0  -29.000000  -42.200001   \n",
       "5         50136  1960      1    6          0.0  -30.900000  -44.500000   \n",
       "6         50136  1960      1    7          0.0  -34.000000  -45.299999   \n",
       "7         50136  1960      1    8          0.0  -32.000000  -43.000000   \n",
       "8         50136  1960      1    9          0.0  -30.299999  -41.299999   \n",
       "9         50136  1960      1   10          0.0  -31.600000  -41.500000   \n",
       "10        50136  1960      1   11          0.0  -28.100000  -43.400002   \n",
       "11        50136  1960      1   12          0.0  -28.799999  -40.299999   \n",
       "12        50136  1960      1   13          0.0  -27.400000  -36.700001   \n",
       "13        50136  1960      1   14          0.0  -26.100000  -40.299999   \n",
       "14        50136  1960      1   15          0.0  -27.799999  -39.000000   \n",
       "15        50136  1960      1   16          0.0  -34.000000  -45.900002   \n",
       "16        50136  1960      1   17          0.0  -34.000000  -46.200001   \n",
       "17        50136  1960      1   18          0.0  -27.200001  -42.500000   \n",
       "18        50136  1960      1   19          0.0  -24.500000  -39.000000   \n",
       "19        50136  1960      1   20          0.0  -26.500000  -42.500000   \n",
       "20        50136  1960      1   21          0.0  -23.500000  -38.200001   \n",
       "21        50136  1960      1   22          0.0  -25.100000  -42.500000   \n",
       "22        50136  1960      1   23          0.0  -28.600000  -43.700001   \n",
       "23        50136  1960      1   24          0.0  -30.799999  -44.599998   \n",
       "24        50136  1960      1   25          0.0  -24.400000  -43.599998   \n",
       "25        50136  1960      1   26          0.0  -22.500000  -34.099998   \n",
       "26        50136  1960      1   27          0.0  -19.799999  -35.400002   \n",
       "27        50136  1960      1   28          0.0  -15.600000  -30.000000   \n",
       "28        50136  1960      1   29          0.0  -14.800000  -31.200001   \n",
       "29        50136  1960      1   30          0.0  -13.400000  -32.900002   \n",
       "...         ...   ...    ...  ...          ...         ...         ...   \n",
       "24460     59981  1963     12    2      32700.0  285.000000  253.000000   \n",
       "24461     59981  1963     12    3      32700.0  281.000000  242.000000   \n",
       "24462     59981  1963     12    4      32700.0  264.000000  236.000000   \n",
       "24463     59981  1963     12    5          0.0  269.000000  233.000000   \n",
       "24464     59981  1963     12    6      32700.0  280.000000  235.000000   \n",
       "24465     59981  1963     12    7          0.0  282.000000  229.000000   \n",
       "24466     59981  1963     12    8          0.0  282.000000  239.000000   \n",
       "24467     59981  1963     12    9         30.0  283.000000  229.000000   \n",
       "24468     59981  1963     12   10        124.0  271.000000  225.000000   \n",
       "24469     59981  1963     12   11        682.0  245.000000  217.000000   \n",
       "24470     59981  1963     12   12          5.0  252.000000  219.000000   \n",
       "24471     59981  1963     12   13      32700.0  257.000000  225.000000   \n",
       "24472     59981  1963     12   14      32700.0  267.000000  225.000000   \n",
       "24473     59981  1963     12   15          0.0  265.000000  233.000000   \n",
       "24474     59981  1963     12   16         45.0  261.000000  217.000000   \n",
       "24475     59981  1963     12   17         39.0  264.000000  225.000000   \n",
       "24476     59981  1963     12   18          0.0  262.000000  232.000000   \n",
       "24477     59981  1963     12   19      32700.0  250.000000  223.000000   \n",
       "24478     59981  1963     12   20         10.0  246.000000  208.000000   \n",
       "24479     59981  1963     12   21         32.0  237.000000  206.000000   \n",
       "24480     59981  1963     12   22         78.0  256.000000  198.000000   \n",
       "24481     59981  1963     12   23          0.0  261.000000  215.000000   \n",
       "24482     59981  1963     12   24          0.0  268.000000  185.000000   \n",
       "24483     59981  1963     12   25          0.0  270.000000  231.000000   \n",
       "24484     59981  1963     12   26          1.0  264.000000  229.000000   \n",
       "24485     59981  1963     12   27          2.0  248.000000  213.000000   \n",
       "24486     59981  1963     12   28         45.0  242.000000  206.000000   \n",
       "24487     59981  1963     12   29        151.0  260.000000  214.000000   \n",
       "24488     59981  1963     12   30          1.0  266.000000  229.000000   \n",
       "24489     59981  1963     12   31          0.0  266.000000  231.000000   \n",
       "\n",
       "      _year_month_day _stationID  accumPrec year_month_day  \n",
       "0          1960-01-01      50136          0     1960-01-01  \n",
       "1          1960-01-02      50136      31001     1960-01-02  \n",
       "2          1960-01-03      50136      31009     1960-01-03  \n",
       "3          1960-01-04      50136      32700     1960-01-04  \n",
       "4          1960-01-05      50136          0     1960-01-05  \n",
       "5          1960-01-06      50136          0     1960-01-06  \n",
       "6          1960-01-07      50136          0     1960-01-07  \n",
       "7          1960-01-08      50136          0     1960-01-08  \n",
       "8          1960-01-09      50136          0     1960-01-09  \n",
       "9          1960-01-10      50136          0     1960-01-10  \n",
       "10         1960-01-11      50136          0     1960-01-11  \n",
       "11         1960-01-12      50136          0     1960-01-12  \n",
       "12         1960-01-13      50136          0     1960-01-13  \n",
       "13         1960-01-14      50136          0     1960-01-14  \n",
       "14         1960-01-15      50136          0     1960-01-15  \n",
       "15         1960-01-16      50136          0     1960-01-16  \n",
       "16         1960-01-17      50136          0     1960-01-17  \n",
       "17         1960-01-18      50136      32700     1960-01-18  \n",
       "18         1960-01-19      50136          0     1960-01-19  \n",
       "19         1960-01-20      50136          0     1960-01-20  \n",
       "20         1960-01-21      50136          0     1960-01-21  \n",
       "21         1960-01-22      50136          0     1960-01-22  \n",
       "22         1960-01-23      50136          0     1960-01-23  \n",
       "23         1960-01-24      50136          0     1960-01-24  \n",
       "24         1960-01-25      50136          0     1960-01-25  \n",
       "25         1960-01-26      50136          0     1960-01-26  \n",
       "26         1960-01-27      50136          0     1960-01-27  \n",
       "27         1960-01-28      50136          0     1960-01-28  \n",
       "28         1960-01-29      50136          0     1960-01-29  \n",
       "29         1960-01-30      50136          0     1960-01-30  \n",
       "...               ...        ...        ...            ...  \n",
       "24460      1963-12-02      59981      32700     1963-12-02  \n",
       "24461      1963-12-03      59981      32700     1963-12-03  \n",
       "24462      1963-12-04      59981      32700     1963-12-04  \n",
       "24463      1963-12-05      59981          0     1963-12-05  \n",
       "24464      1963-12-06      59981      32700     1963-12-06  \n",
       "24465      1963-12-07      59981          0     1963-12-07  \n",
       "24466      1963-12-08      59981          0     1963-12-08  \n",
       "24467      1963-12-09      59981         30     1963-12-09  \n",
       "24468      1963-12-10      59981        124     1963-12-10  \n",
       "24469      1963-12-11      59981        682     1963-12-11  \n",
       "24470      1963-12-12      59981          5     1963-12-12  \n",
       "24471      1963-12-13      59981      32700     1963-12-13  \n",
       "24472      1963-12-14      59981      32700     1963-12-14  \n",
       "24473      1963-12-15      59981          0     1963-12-15  \n",
       "24474      1963-12-16      59981         45     1963-12-16  \n",
       "24475      1963-12-17      59981         39     1963-12-17  \n",
       "24476      1963-12-18      59981          0     1963-12-18  \n",
       "24477      1963-12-19      59981      32700     1963-12-19  \n",
       "24478      1963-12-20      59981         10     1963-12-20  \n",
       "24479      1963-12-21      59981         32     1963-12-21  \n",
       "24480      1963-12-22      59981         78     1963-12-22  \n",
       "24481      1963-12-23      59981          0     1963-12-23  \n",
       "24482      1963-12-24      59981          0     1963-12-24  \n",
       "24483      1963-12-25      59981          0     1963-12-25  \n",
       "24484      1963-12-26      59981          1     1963-12-26  \n",
       "24485      1963-12-27      59981          2     1963-12-27  \n",
       "24486      1963-12-28      59981         45     1963-12-28  \n",
       "24487      1963-12-29      59981        151     1963-12-29  \n",
       "24488      1963-12-30      59981          1     1963-12-30  \n",
       "24489      1963-12-31      59981          0     1963-12-31  \n",
       "\n",
       "[1167253 rows x 11 columns]"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['stationID',\n",
       " 'year',\n",
       " 'month',\n",
       " 'day',\n",
       " 'accumPrec_1',\n",
       " 'maxDayTemp',\n",
       " 'minDayTemp',\n",
       " '_year_month_day',\n",
       " '_stationID',\n",
       " 'accumPrec',\n",
       " 'year_month_day']"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "cols = ['year_month_day', 'stationID', 'maxDayTemp', 'minDayTemp', '_year_month_day', '_stationID', 'accumPrec', 'accumPrec_1', 'year', 'month', 'day']\n",
    "cols = [cols[1]] + cols[-3:] + [cols[-4]] + cols[2:7] + [cols[0]]\n",
    "cols"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "resultDir = '{}'.format(config.resultDataDir)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>stationID</th>\n",
       "      <th>year</th>\n",
       "      <th>month</th>\n",
       "      <th>day</th>\n",
       "      <th>accumPrec_1</th>\n",
       "      <th>maxDayTemp</th>\n",
       "      <th>minDayTemp</th>\n",
       "      <th>_year_month_day</th>\n",
       "      <th>_stationID</th>\n",
       "      <th>accumPrec</th>\n",
       "      <th>year_month_day</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-01</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-01</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>0.1</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-02</td>\n",
       "      <td>50136</td>\n",
       "      <td>31001</td>\n",
       "      <td>1960-01-02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>0.9</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-39.200001</td>\n",
       "      <td>1960-01-03</td>\n",
       "      <td>50136</td>\n",
       "      <td>31009</td>\n",
       "      <td>1960-01-03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-43.099998</td>\n",
       "      <td>1960-01-04</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>1960-01-04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-29.000000</td>\n",
       "      <td>-42.200001</td>\n",
       "      <td>1960-01-05</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>6</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.900000</td>\n",
       "      <td>-44.500000</td>\n",
       "      <td>1960-01-06</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>7</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.299999</td>\n",
       "      <td>1960-01-07</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>8</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-32.000000</td>\n",
       "      <td>-43.000000</td>\n",
       "      <td>1960-01-08</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.299999</td>\n",
       "      <td>-41.299999</td>\n",
       "      <td>1960-01-09</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>10</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-31.600000</td>\n",
       "      <td>-41.500000</td>\n",
       "      <td>1960-01-10</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>11</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.100000</td>\n",
       "      <td>-43.400002</td>\n",
       "      <td>1960-01-11</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>12</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.799999</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-12</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>13</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.400000</td>\n",
       "      <td>-36.700001</td>\n",
       "      <td>1960-01-13</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>14</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-26.100000</td>\n",
       "      <td>-40.299999</td>\n",
       "      <td>1960-01-14</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>15</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.799999</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-15</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>16</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-45.900002</td>\n",
       "      <td>1960-01-16</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>17</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-34.000000</td>\n",
       "      <td>-46.200001</td>\n",
       "      <td>1960-01-17</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>18</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-27.200001</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-18</td>\n",
       "      <td>50136</td>\n",
       "      <td>32700</td>\n",
       "      <td>1960-01-18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-24.500000</td>\n",
       "      <td>-39.000000</td>\n",
       "      <td>1960-01-19</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>20</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-26.500000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-20</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>21</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-23.500000</td>\n",
       "      <td>-38.200001</td>\n",
       "      <td>1960-01-21</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>22</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-25.100000</td>\n",
       "      <td>-42.500000</td>\n",
       "      <td>1960-01-22</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>23</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-28.600000</td>\n",
       "      <td>-43.700001</td>\n",
       "      <td>1960-01-23</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>24</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-30.799999</td>\n",
       "      <td>-44.599998</td>\n",
       "      <td>1960-01-24</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>25</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-24.400000</td>\n",
       "      <td>-43.599998</td>\n",
       "      <td>1960-01-25</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>26</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-22.500000</td>\n",
       "      <td>-34.099998</td>\n",
       "      <td>1960-01-26</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>27</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-19.799999</td>\n",
       "      <td>-35.400002</td>\n",
       "      <td>1960-01-27</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>28</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-15.600000</td>\n",
       "      <td>-30.000000</td>\n",
       "      <td>1960-01-28</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-14.800000</td>\n",
       "      <td>-31.200001</td>\n",
       "      <td>1960-01-29</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>50136</td>\n",
       "      <td>1960</td>\n",
       "      <td>1</td>\n",
       "      <td>30</td>\n",
       "      <td>0.0</td>\n",
       "      <td>-13.400000</td>\n",
       "      <td>-32.900002</td>\n",
       "      <td>1960-01-30</td>\n",
       "      <td>50136</td>\n",
       "      <td>0</td>\n",
       "      <td>1960-01-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24460</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>2</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>285.000000</td>\n",
       "      <td>253.000000</td>\n",
       "      <td>1963-12-02</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-02</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24461</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>3</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>281.000000</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>1963-12-03</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-03</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24462</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>4</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>236.000000</td>\n",
       "      <td>1963-12-04</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-04</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24463</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>5</td>\n",
       "      <td>0.0</td>\n",
       "      <td>269.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-05</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-05</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24464</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>6</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>280.000000</td>\n",
       "      <td>235.000000</td>\n",
       "      <td>1963-12-06</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24465</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>7</td>\n",
       "      <td>0.0</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-07</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-07</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24466</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>8</td>\n",
       "      <td>0.0</td>\n",
       "      <td>282.000000</td>\n",
       "      <td>239.000000</td>\n",
       "      <td>1963-12-08</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24467</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>9</td>\n",
       "      <td>30.0</td>\n",
       "      <td>283.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-09</td>\n",
       "      <td>59981</td>\n",
       "      <td>30</td>\n",
       "      <td>1963-12-09</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24468</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>10</td>\n",
       "      <td>124.0</td>\n",
       "      <td>271.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-10</td>\n",
       "      <td>59981</td>\n",
       "      <td>124</td>\n",
       "      <td>1963-12-10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24469</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>11</td>\n",
       "      <td>682.0</td>\n",
       "      <td>245.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-11</td>\n",
       "      <td>59981</td>\n",
       "      <td>682</td>\n",
       "      <td>1963-12-11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24470</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>5.0</td>\n",
       "      <td>252.000000</td>\n",
       "      <td>219.000000</td>\n",
       "      <td>1963-12-12</td>\n",
       "      <td>59981</td>\n",
       "      <td>5</td>\n",
       "      <td>1963-12-12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24471</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>13</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>257.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-13</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24472</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>267.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-14</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24473</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>15</td>\n",
       "      <td>0.0</td>\n",
       "      <td>265.000000</td>\n",
       "      <td>233.000000</td>\n",
       "      <td>1963-12-15</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24474</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>16</td>\n",
       "      <td>45.0</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>217.000000</td>\n",
       "      <td>1963-12-16</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>1963-12-16</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24475</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>17</td>\n",
       "      <td>39.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>225.000000</td>\n",
       "      <td>1963-12-17</td>\n",
       "      <td>59981</td>\n",
       "      <td>39</td>\n",
       "      <td>1963-12-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24476</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>18</td>\n",
       "      <td>0.0</td>\n",
       "      <td>262.000000</td>\n",
       "      <td>232.000000</td>\n",
       "      <td>1963-12-18</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24477</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>19</td>\n",
       "      <td>32700.0</td>\n",
       "      <td>250.000000</td>\n",
       "      <td>223.000000</td>\n",
       "      <td>1963-12-19</td>\n",
       "      <td>59981</td>\n",
       "      <td>32700</td>\n",
       "      <td>1963-12-19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24478</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>20</td>\n",
       "      <td>10.0</td>\n",
       "      <td>246.000000</td>\n",
       "      <td>208.000000</td>\n",
       "      <td>1963-12-20</td>\n",
       "      <td>59981</td>\n",
       "      <td>10</td>\n",
       "      <td>1963-12-20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24479</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>21</td>\n",
       "      <td>32.0</td>\n",
       "      <td>237.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-21</td>\n",
       "      <td>59981</td>\n",
       "      <td>32</td>\n",
       "      <td>1963-12-21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24480</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>22</td>\n",
       "      <td>78.0</td>\n",
       "      <td>256.000000</td>\n",
       "      <td>198.000000</td>\n",
       "      <td>1963-12-22</td>\n",
       "      <td>59981</td>\n",
       "      <td>78</td>\n",
       "      <td>1963-12-22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24481</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>23</td>\n",
       "      <td>0.0</td>\n",
       "      <td>261.000000</td>\n",
       "      <td>215.000000</td>\n",
       "      <td>1963-12-23</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-23</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24482</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>24</td>\n",
       "      <td>0.0</td>\n",
       "      <td>268.000000</td>\n",
       "      <td>185.000000</td>\n",
       "      <td>1963-12-24</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24483</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>25</td>\n",
       "      <td>0.0</td>\n",
       "      <td>270.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-25</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24484</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>26</td>\n",
       "      <td>1.0</td>\n",
       "      <td>264.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-26</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1963-12-26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24485</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>27</td>\n",
       "      <td>2.0</td>\n",
       "      <td>248.000000</td>\n",
       "      <td>213.000000</td>\n",
       "      <td>1963-12-27</td>\n",
       "      <td>59981</td>\n",
       "      <td>2</td>\n",
       "      <td>1963-12-27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24486</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>28</td>\n",
       "      <td>45.0</td>\n",
       "      <td>242.000000</td>\n",
       "      <td>206.000000</td>\n",
       "      <td>1963-12-28</td>\n",
       "      <td>59981</td>\n",
       "      <td>45</td>\n",
       "      <td>1963-12-28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24487</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>29</td>\n",
       "      <td>151.0</td>\n",
       "      <td>260.000000</td>\n",
       "      <td>214.000000</td>\n",
       "      <td>1963-12-29</td>\n",
       "      <td>59981</td>\n",
       "      <td>151</td>\n",
       "      <td>1963-12-29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24488</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>30</td>\n",
       "      <td>1.0</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>229.000000</td>\n",
       "      <td>1963-12-30</td>\n",
       "      <td>59981</td>\n",
       "      <td>1</td>\n",
       "      <td>1963-12-30</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24489</th>\n",
       "      <td>59981</td>\n",
       "      <td>1963</td>\n",
       "      <td>12</td>\n",
       "      <td>31</td>\n",
       "      <td>0.0</td>\n",
       "      <td>266.000000</td>\n",
       "      <td>231.000000</td>\n",
       "      <td>1963-12-31</td>\n",
       "      <td>59981</td>\n",
       "      <td>0</td>\n",
       "      <td>1963-12-31</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1167253 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      stationID  year  month  day  accumPrec_1  maxDayTemp  minDayTemp  \\\n",
       "0         50136  1960      1    1          0.0  -34.000000  -44.599998   \n",
       "1         50136  1960      1    2          0.1  -34.000000  -43.599998   \n",
       "2         50136  1960      1    3          0.9  -30.299999  -39.200001   \n",
       "3         50136  1960      1    4          0.0  -34.000000  -43.099998   \n",
       "4         50136  1960      1    5          0.0  -29.000000  -42.200001   \n",
       "5         50136  1960      1    6          0.0  -30.900000  -44.500000   \n",
       "6         50136  1960      1    7          0.0  -34.000000  -45.299999   \n",
       "7         50136  1960      1    8          0.0  -32.000000  -43.000000   \n",
       "8         50136  1960      1    9          0.0  -30.299999  -41.299999   \n",
       "9         50136  1960      1   10          0.0  -31.600000  -41.500000   \n",
       "10        50136  1960      1   11          0.0  -28.100000  -43.400002   \n",
       "11        50136  1960      1   12          0.0  -28.799999  -40.299999   \n",
       "12        50136  1960      1   13          0.0  -27.400000  -36.700001   \n",
       "13        50136  1960      1   14          0.0  -26.100000  -40.299999   \n",
       "14        50136  1960      1   15          0.0  -27.799999  -39.000000   \n",
       "15        50136  1960      1   16          0.0  -34.000000  -45.900002   \n",
       "16        50136  1960      1   17          0.0  -34.000000  -46.200001   \n",
       "17        50136  1960      1   18          0.0  -27.200001  -42.500000   \n",
       "18        50136  1960      1   19          0.0  -24.500000  -39.000000   \n",
       "19        50136  1960      1   20          0.0  -26.500000  -42.500000   \n",
       "20        50136  1960      1   21          0.0  -23.500000  -38.200001   \n",
       "21        50136  1960      1   22          0.0  -25.100000  -42.500000   \n",
       "22        50136  1960      1   23          0.0  -28.600000  -43.700001   \n",
       "23        50136  1960      1   24          0.0  -30.799999  -44.599998   \n",
       "24        50136  1960      1   25          0.0  -24.400000  -43.599998   \n",
       "25        50136  1960      1   26          0.0  -22.500000  -34.099998   \n",
       "26        50136  1960      1   27          0.0  -19.799999  -35.400002   \n",
       "27        50136  1960      1   28          0.0  -15.600000  -30.000000   \n",
       "28        50136  1960      1   29          0.0  -14.800000  -31.200001   \n",
       "29        50136  1960      1   30          0.0  -13.400000  -32.900002   \n",
       "...         ...   ...    ...  ...          ...         ...         ...   \n",
       "24460     59981  1963     12    2      32700.0  285.000000  253.000000   \n",
       "24461     59981  1963     12    3      32700.0  281.000000  242.000000   \n",
       "24462     59981  1963     12    4      32700.0  264.000000  236.000000   \n",
       "24463     59981  1963     12    5          0.0  269.000000  233.000000   \n",
       "24464     59981  1963     12    6      32700.0  280.000000  235.000000   \n",
       "24465     59981  1963     12    7          0.0  282.000000  229.000000   \n",
       "24466     59981  1963     12    8          0.0  282.000000  239.000000   \n",
       "24467     59981  1963     12    9         30.0  283.000000  229.000000   \n",
       "24468     59981  1963     12   10        124.0  271.000000  225.000000   \n",
       "24469     59981  1963     12   11        682.0  245.000000  217.000000   \n",
       "24470     59981  1963     12   12          5.0  252.000000  219.000000   \n",
       "24471     59981  1963     12   13      32700.0  257.000000  225.000000   \n",
       "24472     59981  1963     12   14      32700.0  267.000000  225.000000   \n",
       "24473     59981  1963     12   15          0.0  265.000000  233.000000   \n",
       "24474     59981  1963     12   16         45.0  261.000000  217.000000   \n",
       "24475     59981  1963     12   17         39.0  264.000000  225.000000   \n",
       "24476     59981  1963     12   18          0.0  262.000000  232.000000   \n",
       "24477     59981  1963     12   19      32700.0  250.000000  223.000000   \n",
       "24478     59981  1963     12   20         10.0  246.000000  208.000000   \n",
       "24479     59981  1963     12   21         32.0  237.000000  206.000000   \n",
       "24480     59981  1963     12   22         78.0  256.000000  198.000000   \n",
       "24481     59981  1963     12   23          0.0  261.000000  215.000000   \n",
       "24482     59981  1963     12   24          0.0  268.000000  185.000000   \n",
       "24483     59981  1963     12   25          0.0  270.000000  231.000000   \n",
       "24484     59981  1963     12   26          1.0  264.000000  229.000000   \n",
       "24485     59981  1963     12   27          2.0  248.000000  213.000000   \n",
       "24486     59981  1963     12   28         45.0  242.000000  206.000000   \n",
       "24487     59981  1963     12   29        151.0  260.000000  214.000000   \n",
       "24488     59981  1963     12   30          1.0  266.000000  229.000000   \n",
       "24489     59981  1963     12   31          0.0  266.000000  231.000000   \n",
       "\n",
       "      _year_month_day _stationID  accumPrec year_month_day  \n",
       "0          1960-01-01      50136          0     1960-01-01  \n",
       "1          1960-01-02      50136      31001     1960-01-02  \n",
       "2          1960-01-03      50136      31009     1960-01-03  \n",
       "3          1960-01-04      50136      32700     1960-01-04  \n",
       "4          1960-01-05      50136          0     1960-01-05  \n",
       "5          1960-01-06      50136          0     1960-01-06  \n",
       "6          1960-01-07      50136          0     1960-01-07  \n",
       "7          1960-01-08      50136          0     1960-01-08  \n",
       "8          1960-01-09      50136          0     1960-01-09  \n",
       "9          1960-01-10      50136          0     1960-01-10  \n",
       "10         1960-01-11      50136          0     1960-01-11  \n",
       "11         1960-01-12      50136          0     1960-01-12  \n",
       "12         1960-01-13      50136          0     1960-01-13  \n",
       "13         1960-01-14      50136          0     1960-01-14  \n",
       "14         1960-01-15      50136          0     1960-01-15  \n",
       "15         1960-01-16      50136          0     1960-01-16  \n",
       "16         1960-01-17      50136          0     1960-01-17  \n",
       "17         1960-01-18      50136      32700     1960-01-18  \n",
       "18         1960-01-19      50136          0     1960-01-19  \n",
       "19         1960-01-20      50136          0     1960-01-20  \n",
       "20         1960-01-21      50136          0     1960-01-21  \n",
       "21         1960-01-22      50136          0     1960-01-22  \n",
       "22         1960-01-23      50136          0     1960-01-23  \n",
       "23         1960-01-24      50136          0     1960-01-24  \n",
       "24         1960-01-25      50136          0     1960-01-25  \n",
       "25         1960-01-26      50136          0     1960-01-26  \n",
       "26         1960-01-27      50136          0     1960-01-27  \n",
       "27         1960-01-28      50136          0     1960-01-28  \n",
       "28         1960-01-29      50136          0     1960-01-29  \n",
       "29         1960-01-30      50136          0     1960-01-30  \n",
       "...               ...        ...        ...            ...  \n",
       "24460      1963-12-02      59981      32700     1963-12-02  \n",
       "24461      1963-12-03      59981      32700     1963-12-03  \n",
       "24462      1963-12-04      59981      32700     1963-12-04  \n",
       "24463      1963-12-05      59981          0     1963-12-05  \n",
       "24464      1963-12-06      59981      32700     1963-12-06  \n",
       "24465      1963-12-07      59981          0     1963-12-07  \n",
       "24466      1963-12-08      59981          0     1963-12-08  \n",
       "24467      1963-12-09      59981         30     1963-12-09  \n",
       "24468      1963-12-10      59981        124     1963-12-10  \n",
       "24469      1963-12-11      59981        682     1963-12-11  \n",
       "24470      1963-12-12      59981          5     1963-12-12  \n",
       "24471      1963-12-13      59981      32700     1963-12-13  \n",
       "24472      1963-12-14      59981      32700     1963-12-14  \n",
       "24473      1963-12-15      59981          0     1963-12-15  \n",
       "24474      1963-12-16      59981         45     1963-12-16  \n",
       "24475      1963-12-17      59981         39     1963-12-17  \n",
       "24476      1963-12-18      59981          0     1963-12-18  \n",
       "24477      1963-12-19      59981      32700     1963-12-19  \n",
       "24478      1963-12-20      59981         10     1963-12-20  \n",
       "24479      1963-12-21      59981         32     1963-12-21  \n",
       "24480      1963-12-22      59981         78     1963-12-22  \n",
       "24481      1963-12-23      59981          0     1963-12-23  \n",
       "24482      1963-12-24      59981          0     1963-12-24  \n",
       "24483      1963-12-25      59981          0     1963-12-25  \n",
       "24484      1963-12-26      59981          1     1963-12-26  \n",
       "24485      1963-12-27      59981          2     1963-12-27  \n",
       "24486      1963-12-28      59981         45     1963-12-28  \n",
       "24487      1963-12-29      59981        151     1963-12-29  \n",
       "24488      1963-12-30      59981          1     1963-12-30  \n",
       "24489      1963-12-31      59981          0     1963-12-31  \n",
       "\n",
       "[1167253 rows x 11 columns]"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "atmos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "atmos.to_csv('{}\\\\atmos.csv'.format(resultDir))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
